const router = require('koa-router')()
const { cardController } = require('../../controller/routerControl/index')
//添加
router.post('/add', cardController.add)
//查系列
router.get('/queryS', cardController.queryS)
//根据系列查卡包
router.get('/queryPByS', cardController.queryPByS)
//根据id查卡
router.get('/queryCById', cardController.queryCById)
//全部模糊查询
router.post('/queryC', cardController.queryC)
//数量更改
router.post('/changeNumC', cardController.changeNumC)

//获取模糊查询可选项
router.get('/getQuery', cardController.getQuery)

//清空数据库
router.post('/clearDB', cardController.clearDB)

module.exports = router.routes()